package com.chat.business;

import java.util.Date;

import com.chat.data.UserInfoDetItem;
import com.uday.frmwrk.data.BaseRequestItem;
import com.uday.frmwrk.data.BaseResponseItem;
import com.uday.frmwrk.service.FlexSessionActivity;

public class KeepAliveActivity extends FlexSessionActivity {

	public boolean process(BaseRequestItem objBaseRequestItem,
			BaseResponseItem objBaseResponseItem) throws Exception {
		UserInfoDetItem objUserInfoItem = (UserInfoDetItem) objBaseRequestItem
				.getObjReqData();
		int index = LoginActivity.lstUserDetInfo.indexOf(objUserInfoItem);
		boolean blnretVal = false;

		if (index != -1) {
			objUserInfoItem = LoginActivity.lstUserDetInfo.get(index);
			objUserInfoItem.setLngLstKpAlvSgnl(new Date().getTime());
			blnretVal = true;
		}
		return blnretVal;
	}

}
